﻿<Window x:Class="WpfTwitterClient.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:infrastructure="clr-namespace:WpfTwitterClient.Infrastructure;assembly=WpfTwitterClient.Infrastructure"
    xmlns:cal="http://www.codeplex.com/CompositeWPF" 
    Title="WPF Twitter Client" Height="400" Width="400" 
        WindowStyle="None" ResizeMode="NoResize" 
        AllowsTransparency="True" Background="Transparent" 
        MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Window.Resources>
        <DataTemplate DataType="{x:Type infrastructure:ExtendedHeader}">
            <StackPanel Orientation="Horizontal" ToolTip="{Binding Path=ToolTip}">
                <Image Source="{Binding Path=IconUri}" Width="16" Height="16" />
                <TextBlock Text="{Binding Path=Title}" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Border CornerRadius="8" Style="{DynamicResource MyWindowBorderStyle}">
        <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="27" />
            <RowDefinition Height="533*" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Label Content="WPF Twitter Client" Grid.Column="0" FontWeight="Bold" FontSize="16" FontFamily="Corbel" Margin="10,0" Foreground="White" />
                <Button  Command="{x:Static infrastructure:InfrastructureCommands.ApplicationCloseCommand}" Grid.Column="1" HorizontalAlignment="Right" Margin="0,4,10,0" Width="20" Height="18" FontSize="10">X</Button>
        </Grid>
        <TabControl Grid.Row="1" Margin="10,0" 
                    cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.MainRegion}"
                    Style="{DynamicResource ShellTabControlStyle}" 
                    ItemContainerStyle="{DynamicResource ShellTabItemStyle}">
            </TabControl>
                <ItemsControl Grid.Row="3" Margin="10,4" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.StatusRegion}"></ItemsControl>
        </Grid>
    </Border>
</Window>
